package user;

import book.BookList;
import operation.IOperation;

public abstract class User {
    private String name;
    //考虑初始化的一些相关问题
    //由于不知道操作功能的数量，不在这初始化分配空间容量
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }
//    public User user(int choice,String name){
//        if(choice==1)
//            return new AdminUser(name);
//        else
//            return new NormalUser(name);
//    }
    public abstract int menu();
    public abstract void doOperation(int choice, BookList books);
}
